<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CS:GO军需商店 - 官方周边商城</title>
    <link rel="stylesheet" href="/css/shopping.css">
    <link rel="stylesheet" href="/libs/font/iconfont/iconfont.css">
</head>
<body>
    <header></header>
    <section>
        <div class="shopping-top">
            <h3>我的购物中心</h3>
        </div>
        <div class="head-cent" id="head-cent">
            <div><input type="checkbox" id="all-check" > 全选</div>
            <span>商品名称</span>
            <div class="cent-span"><span>优惠</span><span>数量</span><span>价格</span><span>操作</span></div>
        </div>
        <div class="shopping-cent" id="shoppingcent">
        
        </div>

        <script type="text/html" id="cartshopping">
        {{each cart shop}}
        <div data-id="{{shop.id}}" class="p-div">
            <input type="checkbox" class ="checks"  {{ shop.check ? 'checked' : '' }} />
            <div class="shop-img">
                <a href="/html/detail.html?id={{shop.id}}"><img src="{{shop.photo[0].url}}" alt=""></a>
                <p>{{shop.title.slice(0,7)}}...<br><span>尺码:<i>XXL</i></span></p>
            </div>
            <div class="shop-cent-span"><span></span><span class="num-btn"><i class="hover gonv">－</i><i class ="shopcunt">{{shop.count}}</i><i class="hover next">＋</i>
                <br><b>库存{{shop.saleNum}}件</b></span><span class="span-price">￥{{shop.price}}</span><span class="span-del">✖</span>
            </div>
        </div>
            {{/each}}
        </script>
    
        <div class="shopping-null" id="shopnull">
            <a href="/index.html">返回首页</a>
        </div>
        <div class="shopping-price">
            <input type="checkbox" >
            <div class="shop-del">
                <span>删除选中商品</span>
                <a href="/index.html">继续购物</a>
            </div>
            <div class="shop-okbtn">
                <span>合计： ￥<i id='shopmoney'>0</i></span>
                <span class="okbtn">去结算</span>
            </div>
            <!-- <div class="okbtn-img"><img src="/img/okbtnimg.png" alt=""></div> -->
        </div>
        <div class="user-love">
            <a href="#" class="a ac ab">猜你喜欢</a>
            <a href="#" class="a ">你的关注</a>
        </div>
        <div class="love-shop">
            <div class="love-span"><span> &lt; </span><span> > </span></div>
            <div class="love">
                <div class="next1">
                    <div class="next2">
                        <img src="/img/num.jpg" alt="">
                        <p>CS:GO 暴怒野兽帽衫<br><span>¥549.00</span></p>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <div class="home-btn" id="home-btn"><a href="/../index.html">返回<br>首页</a></div>
    <footer></footer>
    <script src="/libs/require/require.min.js" data-main="/js/shopping"></script>
</body>
</html>